from extens import db


class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    account = db.Column(db.String(50), nullable=False)
    password = db.Column(db.String(50), nullable=False)

    def __init__(self, account, password):
        self.account = account
        self.password = password

    def __repr__(self):
        return '<User %s>' % self.account
